#include "routeInfo.h"

routeInfo::routeInfo(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);

}

routeInfo::~routeInfo()
{
}

void routeInfo::showRouteInfo(const char* str) {
	ui.routeInfoEdit->setPlainText(QString::fromLocal8Bit(str));
	show();
}

void routeInfo::routeGetChecked() {
	emit routeChecked();
	close();
}

void routeInfo::closeEvent(QCloseEvent* event) {
	emit routeChecked();
	QWidget::closeEvent(event);
}